#ifndef LOGIN_H
#define LOGIN_H

#include <vector>
#include <string>
#include "types.h"

class Login
{
    private:
        int get_number(int min, int max);
        void wait_response();

        bool processing;
        int accountID;

        std::vector <character> characters;
        //std::string myName, myPass;

    public:
        Login();
        ~Login();

        void stopProcessing();
        void setAccountID(int accountID);
        void addCharacter(int id, std::string name, int type, int level);

        int getAccountID();

        void account_menu(int num = 0);
        void character_menu();

        void create_account(std::string name, std::string pass);
        void log_in(std::string name, std::string pass);
        void create_character(std::string name);
        void get_characters();
};

#endif // LOGIN_H
